#ifndef VIEWERWINDOW_H
#define VIEWERWINDOW_H

#include <QMainWindow>
#include <QWidget>
#include <QPainter>
#include <QPixmap>
#include "iffdecode.h"

class ViewerWindow : public QMainWindow { Q_OBJECT
	public:
		ViewerWindow( char *filename );
	protected:
		void paintEvent( QPaintEvent * );
		void resizeEvent( QResizeEvent * );
//		void keyPressEvent( QKeyEvent * );
	private slots:
		void openIFF();
		void saveAs();
		void doubleSize();
		void halfSize();
		void resetView();
	private:
		QPixmap *pm;
		IFFDecode *decoder;
};

#endif
